import axios from 'axios';

axios.defaults.baseURL = 'http://localhost:8080';

function axiosRq(url, method, data) {
  return new Promise((resolve, reject) => {
    if (method == 'GET') {
      axios.get(url).then((response) => {
        resolve(response.data);
      });
    }
  });
}

export default axiosRq;
